package cn.kgc.bdqn_studentinfomanager.service.UserService;

import cn.kgc.bdqn_studentinfomanager.pojo.common.ServerResponse;
import cn.kgc.bdqn_studentinfomanager.pojo.vo.FromData;

/**
 * by Shanshui CC on 2020/12/6 13:28
 */
public interface UserService {

    /**
     * 登录
     * @param phone
     * @param userPassowrd
     * @return
     */
    public ServerResponse queryTeacherInfo(String phone,String userPassowrd,String userAgent);

    /**
     * 获取手机验证码
     * @param phone
     */
    public void get_PhoneCode(String phone);


    /**
     * 校验验证码
     * @param phone
     * @param code
     * @return
     */
    public int checkPhoneCode(String phone,String code);


    /**
     * 点击注册页面时加载专员下拉框
     * @return
     */
    public ServerResponse showCommissioner();


    /**
     * 登录时选择角色的下拉框
     * @return
     */
    public ServerResponse role();

    /**
     * 注册
     * @param userVo
     * @return
     */
    public ServerResponse register(FromData userVo);


    /**
     * 通过手机号找回密码
     * @param phone
     * @return
     */
//    public ServerResponse retrieveByPhone(String phone,String phoneCode);


    /**
     *  短信登录
     * @param phone
     * @param phoneCode
     * @return
     */
    public ServerResponse phoneCodeLogin(String phone,String phoneCode);



    /**
     * 修改用户密码
     * @param userPassword
     * @return
     */
    public ServerResponse updateTeacherInfoUserPassword(String userPassword,String newUserPassword,String token);


    /**
     * 忘记密码
     * @param phone
     * @param phoneCode
     * @return
     */
    public ServerResponse forgetPwd(String phone, String phoneCode, String newPassword);




}
